<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd" >
<struts-config>
	<form-beans>
		<!-- 定义ActionForm，至少指定两个属性: name , type -->
		<form-bean name="loginForm" type="com.example.ch3.LoginForm" />
	</form-beans>
	<!-- 配置全局Forward对象 -->
	<global-forwards>
		<!-- 该Forward对象的name 属性为error. 映射资源为/WEB-INF/jsp/error.jsp -->
		<forward name="error" path="/WEB-INF/jsp/error.jsp"/>
	</global-forwards>
	<action-mappings>
		<!-- 配置Struts 的Action. Action 是业务控制器 -->
		<action path="/ch3/login" type="com.example.ch3.LoginAction" name="loginForm">
			<!-- 配置该Action 的转发 -->
			<forward name="welcome" path="/WEB-INF/ch3/welcome.jsp"/>
			<!-- 配置该Action 的转发 -->
			<forward name="login" path="/ch3/login.jsp"/>
		</action>
	</action-mappings>
</struts-config>
